home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / gnustep-base-runtime.prerm < prev    next >
Encoding:
Text File  |  2010-12-29  |  1.2 KB  |  54 lines

  1. #! /bin/sh
  2. # prerm script for gnustep-base
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <prerm> `remove'
  10. #        * <old-prerm> `upgrade' <new-version>
  11. #        * <new-prerm> `failed-upgrade' <old-version>
  12. #        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  13. #        * <deconfigured's-prerm> `deconfigure' `in-favour'
  14. #          <package-being-installed> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see /usr/share/doc/packaging-manual/
  17.  
  18. case "$1" in
  19.     remove)
  20.     if dpkg-statoverride --list /usr/bin/gdomap >/dev/null; then
  21.         # override exists.
  22.         dpkg-statoverride --remove /usr/bin/gdomap
  23.     else
  24.         :
  25.     fi
  26.         ;;
  27.     upgrade|deconfigure)
  28.         ;;
  29.     failed-upgrade)
  30.         ;;
  31.     *)
  32.         echo "prerm called with unknown argument \`$1'" >&2
  33.         exit 0
  34.     ;;
  35. esac
  36.  
  37. # dh_installdeb will replace this with shell code automatically
  38. # generated by other debhelper scripts.
  39.  
  40. # Automatically added by dh_installinit
  41. if [ -x "/etc/init.d/gdomap" ] && [ "$1" = remove ]; then
  42.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  43.         invoke-rc.d gdomap stop || exit $?
  44.     else
  45.         /etc/init.d/gdomap stop || exit $?
  46.     fi
  47. fi
  48. # End automatically added section
  49.  
  50.  
  51. exit 0
  52.  
  53.  
  54.